/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shanhesoft.java.common.persistence.domain.IdEntity;

import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * 答题信息Entity 答题信息
 * @author admin
 * @version 2020-10-12 23:59:25
 */
@TableName(value = "t_answer")
@Data @ToString @NoArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Answer extends IdEntity<Answer> {

	private static final long serialVersionUID = 1L;
	/** F_EXAMRECORDID exam_record_id  :  考试记录id */
	public static final String F_EXAMRECORDID = "examRecordId";
	/** F_PAPERNUM paper_num  :  题目编号 */
	public static final String F_PAPERNUM = "paperNum";
	/** F_QUEID que_id  :  题目ID */
	public static final String F_QUEID = "queId";
	/** F_QUETYPE que_type  :  题目类型 */
	public static final String F_QUETYPE = "queType";
	/** F_ANSWER answer  :  答案 */
	public static final String F_ANSWER = "answer";
	/** F_ANSWERTYPE answer_type  :  答题类型 */
	public static final String F_ANSWERTYPE = "answerType";
	/** F_SCORE score  :  实际得分 */
	public static final String F_SCORE = "score";
	/** F_MARKSTATUS mark_status  :  批改状态 */
	public static final String F_MARKSTATUS = "markStatus";
	/** F_STARTTIME start_time  :  开始时间 */
	public static final String F_STARTTIME = "startTime";
	/** F_ENDTIME end_time  :  结束时间 */
	public static final String F_ENDTIME = "endTime";


	/** examRecordId 考试记录id */@NotBlank @Size(max=50)
	@TableField("exam_record_id")
	private String examRecordId;

	/** 编号 */
	@TableField("paper_num")
	private int paperNum;

	/** queId 题目ID */@NotBlank @Size(max=50)
	@TableField("que_id")
	private String queId;
	/** queType 题目类型 */
	@TableField("que_type")
	private Long queType;
	/** answer 答案 */@Size(max=2000)

	private String answer;
	/** answerType 答题类型 */@NotBlank @Size(max=1)
	@TableField("answer_type")
	private String answerType;
	/** score 实际得分 */
	private Integer score;
	/** markStatus 批改状态 */@Size(max=1)
	@TableField("mark_status")
	private String markStatus;
	/** startTime 开始时间 */
	@TableField("start_time")
	private Date startTime;
	/** endTime 结束时间 */
	@TableField("end_time")
	private Date endTime;


	@Override
    public boolean equals(Object o) {
        return super.equals(o);
    }
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
